#!/bin/bash

APP=("java" "health_check")
java=(
     "java --add-opens java.base/java.lang=ALL-UNNAMED -DAPP_NAME=zcmMonitor -XX:MaxRAMPercentage=70.0 -Dspring.config.location=/app/conf/monitorConfig.properties -Dlogging.config=/app/conf/logback.xml -cp /app/lib/zcm-monitor-9.1.3-sec-SNAPSHOT.jar:/app/lib/run/* com.ztesoft.zsmart.zcm.monitor.App" # start command
     "APP_NAME=zcmMonitor" # process key
     "echo OK"    # liveness check command
     "OK"         # liveness successful code
     "curl -k -m 10 -s https://127.0.0.1:${NMS_MONITOR_SSL_PORT}/app/health 2>/dev/null"    # readiness check command
     "UP"         # readiness successful code
)
health_check=(
    "sh /app/health_check.sh" # start command
     "health_check.sh"       # process key
     "echo OK"    # liveness check command
     "OK"         # liveness successful code
     "echo OK"    # readiness check command
     "OK"         # readiness successful code
)